home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Button / Include / ButtonDef.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.7 KB  |  87 lines  |  [TEXT/MPS ]

  1. //==========================================================
  2. //
  3. //    File:                ButtonDef.h
  4. //    Release Version:    $ 1.0d9 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:    (c) 1993-95 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //==========================================================
  11.  
  12. #ifndef BUTTONDEF_H
  13. #define BUTTONDEF_H
  14.  
  15. // Uncomment the following three lines, and define them appropriately!!
  16. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  17. // to be 1.  Otherwise define it to be 0.
  18. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  19. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  20. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  21. // define it to be zero.  Note that if your part is scriptable is must support
  22. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  23.  
  24. #define FW_SUPPORTS_EMBEDDING 0
  25. #define FW_SUPPORTS_EXTENSIONS 0
  26. #define FW_SUPPORTS_SCRIPTING 0
  27.  
  28. #ifndef FW_SUPPORTS_EMBEDDING
  29. #error You must define FW_SUPPORTS_EMBEDDING to be 0 or 1 (immediately above)
  30. #endif
  31.  
  32. #ifndef FW_SUPPORTS_EXTENSIONS
  33. #error You must define FW_SUPPORTS_EXTENSIONS to be 0 or 1 (immediately above)
  34. #endif
  35.  
  36. #ifndef FW_SUPPORTS_SCRIPTING
  37. #error You must define FW_SUPPORTS_SCRIPTING to be 0 or 1 (immediately above)
  38. #endif
  39.  
  40. // Kind
  41. #define kODFButtonKind "Apple:ODFExamples:Kind:ODFButton"
  42.  
  43. // Class ID
  44. #define kODFButtonEditor "ODFExamples::ODFButton"
  45.  
  46. // Presentation
  47. #define kODFButtonPresentation "Apple:Presentation:ODFButton"
  48.  
  49. // Editor User String
  50. #define kODFButtonEditorUserString "ODFButton 1.0d11"
  51.  
  52. // Kind User String
  53. #define kODFButtonKindUserString "ODF Button Example"
  54.  
  55. // Category User String
  56. #define kODFButtonCategoryUserString "Control"
  57.  
  58. // Button OSType
  59. #define kODFButtonOSType 'DFUD'
  60.  
  61. // Sound OSType
  62. #define kMacSoundOSType 'snd '
  63.  
  64. // Sound Data Type
  65. #define kODFSoundOSType "Apple:OSType:Scrap:snd "
  66.  
  67. // Data Interchange Types
  68. // This is bad we need to change that
  69. #define kSoundScrapKind "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:snd "
  70. #define kScriptScrapKind "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:scpt"
  71. #define kSoundFileKind  "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:FileType:sfil"
  72. #define kScriptFileKind  "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:FileType:osas"
  73.  
  74. // Part Icon
  75. #define kPartIconID 128
  76.  
  77. #define kKindCategoryMapId            128
  78. #define kEditorKindMapId            kKindCategoryMapId + 1
  79. #define kEditorUserStringMapId        kEditorKindMapId + 1
  80. #define kKindUserStringMapId        kEditorUserStringMapId + 1
  81. #define kCategoryUserStringMapId    kKindUserStringMapId + 1
  82. #define kOldMacOSTypeMapId            kCategoryUserStringMapId + 1
  83. #define kEditorPlatformKinds        kOldMacOSTypeMapId + 1
  84.  
  85. #endif
  86.  
  87.